import sys
sys.path.append("..")
import leancloud
import Cust.leancloudapi
Getapi = Cust.leancloudapi.GetApi()
class Count:
  def getcount(self):
      stu = Getapi.getStudent()
      stu_count = stu.query.count()
      tea = Getapi.getTeacher()
      tea_count = tea.query.count()
      clas = Getapi.getClass()
      class_count = clas.query.count()
      les = Getapi.getLesson()
      les_count = les.query.count()
      return {'stu':stu_count,'les':les_count,'cla':class_count,'tea':tea_count}